package android.support.v4.os;

import android.bluetooth.BluetoothAdapter;

import com.edroid.autorunner.um.UserManager;

/**
 * 
 * @author yichou 2014-8-22
 *
 */
public class EBluetoothAdapter extends EHook {

	@Override
	public String getClassName() {
		return BluetoothAdapter.class.getName();
	}

	@Override
	public void hook() {
		findAndHookMethod("getAddress", this);
	}

	@Override
	protected void after(String name, Object[] args, MethodHookParam param) {
		param.setResult(UserManager.currentUserInfo().BSSID);
		log.i("after " + name + " ret=" + param.getResult());
	}
}
